package net.zhuike.novel.app.service;

import android.content.Context;

import net.zhuike.novel.app.bean.CollBookBean;
import net.zhuike.novel.app.bean.Recommend;
import net.zhuike.novel.app.bean.RecommendBookPackage;

import java.util.Map;

import framework.common.zanetwork.UeHttpUrl;
import framework.common.zanetwork.core.HttpCallback;
import framework.common.zanetwork.core.ResponseCallback;
import okhttp3.Response;

/**
 * Created by qi.wang on 2017/6/12.
 * 书架service
 */

public class BookShelfService extends BaseService{
    public static  void getReComment(final Context context, String id, final ResponseCallback<RecommendBookPackage> callback){
        httpHelper.get(UeHttpUrl.getReComment(id),null, new HttpCallback<RecommendBookPackage>() {
            @Override
            public void onRequestBefore() {

            }

            @Override
            public void onSuccess(Response response, RecommendBookPackage o) {
                callback.onSuccess(o);
            }

            @Override
            public void onError(Response response, int errorCode, Exception e) {
                callback.onError(response, errorCode, null, e);

            }

            @Override
            public void onFailure(Response response, String failureMsg, int code) {
                callback.onError(response, code, failureMsg, null);
            }
        });
    }
}
